package android.support.v4.os;

import android.os.Parcel;

/**
 * 
 * @author yichou 2015-3-17
 *
 */
public class EParcel extends EHook {

	@Override
	public String getClassName() {
		return Parcel.class.getName();
	}

	@Override
	public void hook() {
		super.hook();
		
		//readException(int code, String msg) 
		findAndHookMethod("readException", int.class, String.class, this);
	}
	
	@Override
	protected boolean before(String name, Object[] args, MethodHookParam param) {
		log.e("Parcel", name + " code=" + args[0] + " msg=" + args[1]);
		
		return true;
	}
}
